package com.qc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qc.dao.BusinessPeopleDao;
import com.qc.entity.BusinessPeopleVo;
import com.qc.service.BusinessPeopleService;

@Service("businessPeopleService")
public class BusinessPeopleServiceImpl implements BusinessPeopleService{

	@Resource(name="businessPeopleDao")
	private BusinessPeopleDao businessPeopleDao;
	
	@Override
	public int getListBusinessJobVoCount(long shopId,String nickName,int state) {

		return businessPeopleDao.getListBusinessJobVoCount(shopId, nickName, state);
	}

	@Override
	public List<BusinessPeopleVo> getAllBusinessPeople(long shopId,String nickName,int state, int pageNo, int pageSize) {

		return businessPeopleDao.getAllBusinessPeople(shopId,nickName,state, pageNo, pageSize);
	}

	@Override
	public int updatePeopleId(long bId, int state) {

		return businessPeopleDao.updatePeopleId(bId, state);
	}

	@Override
	public BusinessPeopleVo getBusinessPeopleVoId(long bId) {

		return businessPeopleDao.getBusinessPeopleVoId(bId);
	}

}
